package com.tcode.controller;

import com.tcode.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class indexController {
    @Autowired
    private UserService us;

    @RequestMapping("allUser")
    public String allUser(Model model){
        model.addAttribute("list",us.getAllUser());
        return "list";
    }
}
